import EventList from "../event/EventList";
export default class SheduleTimber extends EventList {

    private interval: number = 1;


    private time:number = 0;
    constructor() {
        super();
    }
    /**
     * 
     * @param interval 
     */
    start(interval: number) {
        this.interval = interval;
        this.time = 0;
    }

    update(dt:number){
        this.time += dt;
        if(this.time >= this.interval){
            this.time = 0;
            this.publish()
        }
    }


}
